From: Giovanni Campagna Date: Tue, 19 Jun 2012 17:48:02 +0000 (+0200) Subject: Disable unredirection when a modal operation is active X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6459 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8ebbba6eb8074c7fb2c218d219a542d24b514643;p=gnome-shell.git Disable unredirection when a modal operation is active When the shell takes control of the screen (for example to show a modal dialog or to lock the screen), it must reestablish itself on top of the stack, and in particular restore any unredirected window so that it is composited below the Shell UI. Reviewed-By: drago01 in IRC. --- diff --git a/js/ui/main.js b/js/ui/main.js index 4248ab9cd..bc5a3df30 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -671,6 +671,7 @@ function pushModal(actor, timestamp, options) { log('pushModal: invocation of begin_modal failed'); return false; } + Meta.disable_unredirect_for_screen(global.screen); } global.set_stage_input_mode(Shell.StageInputMode.FULLSCREEN); @@ -751,6 +752,7 @@ function popModal(actor, timestamp) { global.end_modal(timestamp); global.set_stage_input_mode(Shell.StageInputMode.NORMAL); + Meta.enable_unredirect_for_screen(global.screen); } function createLookingGlass() {